<?php
/**
 * @see Zym_App
 */
require_once 'Zym/App.php';

class Katana_App extends Zym_App
{	
	/**
	 * @see Zym_App::run()
	 *
	 * @param Zend_Config|string $config
	 * @param string $environment
	 * @param string $format
	 */
	public static function run($config = null, $environment = null, $format = null) {
		
		if(null === $config){
			$config = PATH_PROJECT . 'config/bootstrap.xml';
		}
		
		if(null === $environment){
			$environment = parent::ENV_PRODUCTION;
			if(isset($_SERVER['APP_ENV'])){
				$environment = $_SERVER['APP_ENV'];				
			}			
		}
		
		parent::run($config,$environment,$format);
		
		Zend_Controller_Front::getInstance()
			->setBaseUrl('development/katana-zend-php/base-structure/html/')
			->dispatch();
	}

}
?>